<template>
  <el-upload
    list-type="picture-card"
    :limit="1"
    action="#"
    :on-preview="handlePictureCardPreview"
  >
    <i class="el-icon-plus" />
  </el-upload>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    }
  }
};
</script>